package com.wyf;

import com.wyf.config.IocConfig3;
import com.wyf.config.IocConfig4;
import com.wyf.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Starter5 {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(IocConfig3.class);
        UserService userService = applicationContext.getBean(UserService.class);
        userService.showConfigInfo();

    }
}
